package com.yixun.qfbao.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component
@Configuration
@PropertySource(value = "classpath:application.properties",encoding="UTF-8")
public class WHApiConfig {

    public static final String whGetBill = "/api/Indecator/GetBill";

    @Value("${whRequestSwitch}")
    private boolean whRequestSwitch;
    @Value("${whRequestUrl}")
    private String whRequestUrl;

    public boolean isWhRequestSwitch() {
        return whRequestSwitch;
    }

    public void setWhRequestSwitch(boolean whRequestSwitch) {
        this.whRequestSwitch = whRequestSwitch;
    }

    public String getWhRequestUrl() {
        return whRequestUrl;
    }

    public void setWhRequestUrl(String whRequestUrl) {
        this.whRequestUrl = whRequestUrl;
    }
}
